package mapping

import (
	"maya-service/model"
	"maya-service/model/entity"
)

// AiConsultsEntityToDto entity data transfer
func AiConsultsEntityToDto(aiConsults []*entity.AiConsult) []*model.AiConsultInfo {
	out := make([]*model.AiConsultInfo, 0, len(aiConsults))
	for _, c := range aiConsults {
		out = append(out, AiConsultEntityToDto(c))
	}
	return out
}

// AiConsultEntityToDto entity data transfer
func AiConsultEntityToDto(e *entity.AiConsult) *model.AiConsultInfo {
	return &model.AiConsultInfo{

		Id: e.Id,

		UserId: e.UserId,

		Level: e.Level,

		Module: e.Module,

		Content: e.Content,

		ExtraContent: e.ExtraContent,

		UserFlag: e.UserFlag,

		LeaveMessage: e.LeaveMessage,

		LeaveMessageRsp: e.LeaveMessageRsp,

		LeaveMessageFlag: e.LeaveMessageFlag,

		Scores: e.Scores,

		PayStatus: e.PayStatus,

		EvalTime: e.EvalTime,

		SupervisorId: e.SupervisorId,

		SupervisorName: e.SupervisorName,

		EvalToSupervisor: e.EvalToSupervisor,

		EvalContent: e.EvalContent,

		Title: e.Title,

		QuestionId: e.QuestionId,

		ReferenceAnswer: e.ReferenceAnswer,

		QuestionScore: e.QuestionScore,

		CreatedAt: e.CreatedAt,

		UpdatedAt: e.UpdatedAt,
	}
}
